<cfcomponent hint="Base functions for app.">
    
    
    <cfinclude template="../Authentication.cfm">
    <cfinclude template="../functions.cfm">
    <cfinclude template="../TermFunctions.cfm">
    
    <!---HTML header and footer.  Thsee blocks of html are on every page, so I made function to spit them out.--->
	<cffunction name="htmlHeader" access="public" returntype="any" >
    	<cfargument default="" name="js_list" type="any" required="no" />
    	<cfargument default="" name="css_list" type="any" required="no" />
        <cfargument default="EPAR" name="title" type="string" required="no" />
        <cfargument default="Home" name="activeLink" type="string" required="no" />    
        
        <!---Pauls date validator.  --->
		<cfajaxproxy cfc="/code_lib/SCF_DateValidation" jsclassname="pdv">
        
        <cfajaxproxy cfc="#session.rootDir#.cfc.utilities" jsclassname="utils">
        
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><cfoutput>#title#</cfoutput></title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta content="no-cache" />

        <link href="/<cfoutput>#session.rootDir#</cfoutput>/css/default.css" rel="stylesheet" type="text/css" />
        <cfif ListLen(css_list) gt 0>
    		<cfloop list="#css_list#" index="css" delimiters=",">
	 			<link href="<cfoutput>#css#</cfoutput>" rel="stylesheet" type="text/css" />
        	</cfloop>
        </cfif>
        
        
        <script language="Javascript" type="text/javascript" src="/jquery/jquery-1.4.2.min.js"></script>
		<cfif ListLen(js_list) gt 0>
    		<cfloop list="#js_list#" index="js" delimiters=",">				
		 		<script language="Javascript" type="text/javascript" src="<cfoutput>#js#</cfoutput>" ></script>				
        	</cfloop>
        </cfif>		
        </head> 		     
        
  		<body>
        	<!-- start header -->
            <div id="header">
                <div id="logo">
                    <h1><a href="/<cfoutput>#session.rootDir#</cfoutput>/index.cfm">E-PAR</a></h1>
                    <h2>Electronic Personnel Action Request</h2>
                </div>
            </div>
            <!-- end header -->
            <!-- start page -->
            <div id="page">	
                <div id="menu">
                    <table>
                        <tr>
                            <td <cfif activeLink eq 'Home'>class='active'</cfif>><a href="index.cfm">Home</a></td>
                            <td <cfif activeLink eq 'Status'>class='active'</cfif>><a href="status.cfm">Status</a></td>
                            <td <cfif activeLink eq 'Statistics'>class='active'</cfif>><a href="stats.cfm">Statistics</a></td>
                        </tr>
                    </table>
                </div>
                <!-- start content -->
                <div id="content">
                    <div class="post">                        
                      
    </cffunction> 
    
    
    
    <!---HTML header and footer.  Thsee blocks of html are on every page, so I made function to spit them out.--->
    <cffunction name="htmlFooter" access="public" returntype="any" >
            </div>
            </div>
            <!-- end content -->
            
            <!-- start sidebar -->
            <div id="sidebar">
                <ul>
                    <li id="search">
                    <h2>Search</h2>
                    <cfform name="EmployeeSearch" method="post" action="appsearch.cfm">
                    <cfinput type="text" id="SearchString" name="SearchString" value="Search" />
                    <cfinput type="submit" id="Search" name="Search" value="Search" />
                    </cfform>
                    </li>
                    <li>
                        <h2>Quick Links</h2>
                        <ul>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or 
                                Session.strAuthType EQ Session.LIAISONS>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Non-SCF/Step1-Request.cfm">Liaisons:  Contractor Request</a></li>
                            <cfelse>
                                <li>Liaisons:  Contractor Request</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or
                                Session.strAuthType EQ Session.MANAGERS or Session.bolManager>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Step1-Hire.cfm">Managers:  Initiate Hiring</a></li>
                            <cfelse>
                                <li>Managers:  Initiate SCF Hiring</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Step2-PreOrientation1.cfm">HR:  Pre-Orientation</a></li>
                            <cfelse>
                                <li>HR:  Pre-Orientation</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Step3-Orientation1.cfm">HR:  Orientation</a></li>
                            <cfelse>
                                <li>HR:  Orientation</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Step4-BadgeReport.cfm">HR:  Badge Creation Report</a></li>
                            <cfelse>
                                <li>HR:  Badge Creation Report</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or Session.strAuthType EQ Session.FINANCE>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Step5-EmpNoUpdate.cfm">Finance:  Employee # Update</a></li>
                            <cfelse>
                                <li>Finance:  Employee # Update</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or Session.strAuthType EQ Session.FACILITIES>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/Step5-AccessControlUpdate.cfm">Facilities:  Access Control Update</a></li>
                            <cfelse>
                                <li>Facilities:  Access Control Update</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or
                                Session.strAuthType EQ Session.MANAGERS or Session.bolManager>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/termination/index.cfm">Termination</a></li>
                            <cfelse>
                                <li>Termination</li>
                            </cfif>
                            <cfif Session.strAuthType NEQ Session.MANAGERS>
                                <li><a href="/<cfoutput>#session.rootDir#</cfoutput>/EPARDocumentation.doc">Help Documentation</a></li>
                            </cfif>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- end sidebar -->
            </div>
            <cfoutput>
                <div id="footer">
                    <p id="legal">&copy;2007-#dateformat(now(),"YY")# Southcentral Foundation.</p>
                </div>
            </cfoutput>
            </body>
        </html>
    </cffunction>
    
    
    
    <!---HTML header and footer NON-SCF EPAR.  Thsee blocks of html are on every page, so I made function to spit them out.--->
	<cffunction name="htmlHeaderNonSCF" access="public" returntype="any" >
    	<cfargument default="" name="js_list" type="any" required="no" />
    	<cfargument default="" name="css_list" type="any" required="no" />
        <cfargument default="EPAR" name="title" type="string" required="no" />
        <cfargument default="Home" name="activeLink" type="string" required="no" />    
        <cfargument default="false" name="altMenu" type="string" required="no" />
        
        <!---Pauls date validator.  --->
		<cfajaxproxy cfc="/code_lib/SCF_DateValidation" jsclassname="pdv">
        
        <cfajaxproxy cfc="#session.rootDir#.cfc.utilities" jsclassname="utils">        
        
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><cfoutput>#title#</cfoutput></title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta content="no-cache" />

        <link href="/<cfoutput>#session.rootDir#</cfoutput>/css/default.css" rel="stylesheet" type="text/css" />
        <cfif ListLen(css_list) gt 0>
    		<cfloop list="#css_list#" index="css" delimiters=",">
	 			<link href="<cfoutput>#css#</cfoutput>" rel="stylesheet" type="text/css" />
        	</cfloop>
        </cfif>
        
        
        <script language="Javascript" type="text/javascript" src="/jquery/jquery-1.4.2.min.js"></script>
		<cfif ListLen(js_list) gt 0>
    		<cfloop list="#js_list#" index="js" delimiters=",">				
		 		<script language="Javascript" type="text/javascript" src="<cfoutput>#js#</cfoutput>" ></script>				
        	</cfloop>
        </cfif>		
        </head> 		     
        
  		<body>
        	<!-- start header -->
            <div id="header">
                <div id="logo">
                    <h1><a href="/<cfoutput>#session.rootDir#</cfoutput>/index.cfm">E-PAR</a></h1>
                    <h2>Electronic Personnel Action Request</h2>
                    <h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        &nbsp;&nbsp;&nbsp;&nbsp;(for Non-SCF Employees)</h3>
                </div>
            </div>
            <!-- end header -->
            <!-- start page -->
            <div id="page">	
                <div id="menu">
                    <table>
                        <tr>
                        	<cfif altMenu eq "false">
                                <td <cfif activeLink eq 'Home'>class='active'</cfif>><a href="index.cfm">Home</a></td>
                                <td <cfif activeLink eq 'Creation'>class='active'</cfif>><a href="Step1-Request.cfm">Creation</a></td>
                                <td <cfif activeLink eq 'Termination'>class='active'</cfif>><a href="NonSCFTermination.cfm">Termination</a></td>
                            <cfelse>
                            	<td <cfif activeLink eq 'Home'>class='active'</cfif>><a href="index.cfm">Home</a></td>
                                <td <cfif activeLink eq 'Status'>class='active'</cfif>><a href="/<cfoutput>#session.rootDir#</cfoutput>/status.cfm">Status</a></td>
                                <td <cfif activeLink eq 'Stats'>class='active'</cfif>><a href="/<cfoutput>#session.rootDir#</cfoutput>/stats.cfm">Statistics</a></td>
                            </cfif>
                        </tr>
                    </table>
                </div>
                <!-- start content -->
                <div id="content">
                    <div class="post">                        
                      
    </cffunction>
    
    
    
    <!---HTML header and footer NONSCF.  Thsee blocks of html are on every page, so I made function to spit them out.--->
    <cffunction name="htmlFooterNonSCF" access="public" returntype="any" >
            </div>
            </div>
            <!-- end content -->
            
            <!-- start sidebar -->
            <div id="sidebar">
                <ul>
                    <li id="search">
                    <h2>Search</h2>
                    <cfform name="EmployeeSearch" method="post" action="appsearch.cfm">
                    <cfinput type="text" id="SearchString" name="SearchString" value="Search" />
                    <cfinput type="submit" id="Search" name="Search" value="Search" />
                    </cfform>
                    </li>
                    <li>
                        <h2>Quick Links</h2>
                        <ul>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or 
                                Session.strAuthType EQ Session.LIAISONS>
                                <li><a href="Step1-Request.cfm">Liaisons:  Contractor Request</a></li>
                            <cfelse>
                                <li>Liaisons:  Contractor Request</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or
                                Session.strAuthType EQ Session.MANAGERS or Session.bolManager>
                                <li><a href="../Step1-Hire.cfm">Managers:  Initiate Hiring</a></li>
                            <cfelse>
                                <li>Managers:  Initiate SCF Hiring</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="Step2-Orientation1.cfm">HR:  Contractor Orientation</a></li>
                            <cfelse>
                                <li>HR:  Orientation</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="Step4-BadgeReport.cfm">HR:  Badge Creation Report</a></li>
                            <cfelse>
                                <li>HR:  Badge Creation Report</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or Session.strAuthType EQ Session.FACILITIES>
                                <li><a href="Step5-AccessControlUpdate.cfm">Facilities:  Access Control Update</a></li>
                            <cfelse>
                                <li>Facilities:  Access Control Update</li>
                            </cfif>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- end sidebar -->
            </div>
            <cfoutput>
                <div id="footer">
                    <p id="legal">&copy;2007-#dateformat(now(),"YY")# Southcentral Foundation.</p>
                </div>
            </cfoutput>
            </body>
        </html>
    </cffunction>
    
    
    
    <!---HTML header and footer.  Thsee blocks of html are on every page, so I made function to spit them out.--->
	<cffunction name="htmlTerminationHeader" access="public" returntype="any" >
    	<cfargument default="" name="js_list" type="any" required="no" />
    	<cfargument default="" name="css_list" type="any" required="no" />
        <cfargument default="EPAR" name="title" type="string" required="no" />
        <cfargument default="Home" name="activeLink" type="string" required="no" />    
        
        <!---Pauls date validator.  --->
		<cfajaxproxy cfc="/code_lib/SCF_DateValidation" jsclassname="pdv">
        
        <cfajaxproxy cfc="#session.rootDir#.cfc.utilities" jsclassname="utils">
        
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><cfoutput>#title#</cfoutput></title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta content="no-cache" />

        <link href="/<cfoutput>#session.rootDir#</cfoutput>/css/default.css" rel="stylesheet" type="text/css" />
        <cfif ListLen(css_list) gt 0>
    		<cfloop list="#css_list#" index="css" delimiters=",">
	 			<link href="<cfoutput>#css#</cfoutput>" rel="stylesheet" type="text/css" />
        	</cfloop>
        </cfif>
        
        
        <script language="Javascript" type="text/javascript" src="/jquery/jquery-1.4.2.min.js"></script>
		<cfif ListLen(js_list) gt 0>
    		<cfloop list="#js_list#" index="js" delimiters=",">				
		 		<script language="Javascript" type="text/javascript" src="<cfoutput>#js#</cfoutput>" ></script>				
        	</cfloop>
        </cfif>		
        </head> 		     
        
  		<body>
        	<!-- start header -->
            <div id="header">
                <div id="logo">
                    <h1><a href="/<cfoutput>#session.rootDir#</cfoutput>/index.cfm">E-PAR</a></h1>
                    <h2>Electronic Personnel Action Request</h2>
                </div>
            </div>
            <!-- end header -->
            <!-- start page -->
            <div id="page">	
                <div id="menu">
                    <table>
                        <tr>
                            <td <cfif activeLink eq 'Home'>class='active'</cfif>><a href="index.cfm">Home</a></td>
                            <td <cfif activeLink eq 'Status'>class='active'</cfif>><a href="status.cfm">Term Status</a></td>
                            <!--- <td <cfif activeLink eq 'Statistics'>class='active'</cfif>><a href="../stats.cfm">Statistics</a></td> --->
                        </tr>
                    </table>
                </div>
                <!-- start content -->
                <div id="content">
                    <div class="post">                        
                      
    </cffunction> 
    
    
    
    <!---HTML header and footer.  Thsee blocks of html are on every page, so I made function to spit them out.--->
    <cffunction name="htmlTerminationFooter" access="public" returntype="any" >
            </div>
            </div>
            <!-- end content -->
            
            <!-- start sidebar -->
            <div id="sidebar">
                <ul>
                    <li id="search">
                    <h2>Search</h2>
                    <cfform name="EmployeeSearch" method="post" action="appsearch.cfm">
                        <cfinput type="text" id="SearchString" name="SearchString" value="Search" />
                        <cfinput type="submit" id="Search" name="Search" value="Search" />
                    </cfform>
                    </li>
                    <li>
                        <h2>Quick Links</h2>
                        <ul>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or Session.strAuthType EQ Session.LIAISONS>
                                <li><a href="Step1-Request.cfm">Managers: Request Termination</a></li>
                            <cfelse>
                                <li>Managers: Request Termination</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR or Session.strAuthType EQ Session.MANAGERS or Session.bolManager>
                                <li><a href="Step2-HRACknowledgeRequest1.cfm">HR: Confirmation Request</a></li>
                            <cfelse>
                                <li>HR:  Acknowledge Request</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="Step4-FinanceManagerTerm.cfm">Finance: Manager Termination</a></li>
                            <cfelse>
                                <li>Finance: Manager Termination</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="Step4-FinanceTerm.cfm">Finance: Employee Termination</a></li>
                            <cfelse>
                                <li>Finance: Employee Termination</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="Step5-PayrollTerm.cfm">Payroll: Employee Termination </a></li>
                            <cfelse>
                                <li>Payroll: Employee Termination</li>
                            </cfif>
                            <cfif Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR>
                                <li><a href="Step6-AccessControlTerm.cfm">Facilities: Termination Update</a></li>
                            <cfelse>
                                <li>Facilities:  Termination Update</li>
                            </cfif>                            
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- end sidebar -->
            </div>
            <cfoutput>
                <div id="footer">
                    <p id="legal">&copy;2007-#dateformat(now(),"YY")# Southcentral Foundation.</p>
                </div>
            </cfoutput>
            </body>
        </html>
    </cffunction>
    
  

</cfcomponent>